OtpButtonDefaults
Default styles for OtpVerifyButton and OtpResendButton.
Functions
Link copied to clipboard
Link copied to clipboard
fun darkColors(content: Color = Color(0xFF1C1C1E), container: Color = Color(0xFFE5E5EA), border: Color = container, disabledContent: Color = Color(0xFF8E8E93), disabledContainer: Color = Color(0xFF2C2C2E), disabledBorder: Color = Color(0xFF8E8E93)): OtpButtonColors
Dark-theme colors.
Link copied to clipboard
fun style(textStyle: TextStyle = TextStyle(fontSize = 16.sp, fontWeight = FontWeight.Medium, textAlign = TextAlign.Center), cornerRadius: Dp = 12.dp, shape: Shape = RoundedCornerShape(cornerRadius), minHeight: Dp = OtpFieldDefaults.MinTargetSize, contentPadding: PaddingValues = PaddingValues(horizontal = 16.dp, vertical = 12.dp), borderWidth: Dp = 0.dp, colors: OtpButtonColors? = null): OtpButtonStyle
Link copied to clipboard
Colors that follow the system light or dark theme; what a style with null colors uses.